define(function(require, exports, module) {
    "use strict"; 
     var $ = require("$"),
        app = require("dist/application/app"),
        config = app.config,
        method = app.method;
    var echarts = require("dist/echarts/init.js");
    var $bar_echarts=$("#bar_echarts");
    $bar_echarts.length && (function(e) {
        var path = $bar_echarts.data("path");
        path && method.get(path, function(d) {
            if(config.issucceed(d)){
                echarts.bar("bar_echarts", d.data)
            }else{
                config.msg.error(d.message);
            }
            
        })

    })(); 
  });